package com.example.xpvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 订单商品表
 * @TableName ls_order_goods
 */
@TableName(value ="ls_order_goods")
@Data
public class OrderGoods implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 规格id
     */
    private Integer itemId;

    /**
     * 商品数量
     */
    private Integer goodsNum;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 商品总价
     */
    private BigDecimal totalPrice;

    /**
     * 实际支付商品金额
     */
    private BigDecimal totalPayPrice;

    /**
     * 优惠金额
     */
    private BigDecimal discountPrice;

    /**
     * 商品规格值
     */
    private String specValue;

    /**
     * 商品规格id
     */
    private String specValueIds;

    /**
     * 商品主图
     */
    private String image;

    /**
     * 0-未发货;1-已发货
     */
    private Boolean shippingStatus;

    /**
     * 发货单ID
     */
    private Integer deliveryId;

    /**
     * 售后状态;0-未申请退款;1-申请退款;2-等待退款;3-退款成功;
     */
    private Boolean refundStatus;

    /**
     * 是否已评论；0-否；1-是
     */
    private Boolean isComment;

    /**
     * 抽成比例
     */
    private String commissionRatio;

    /**
     * 创建时间
     */
    private Integer createTime;

    /**
     * 店铺id
     */
    private Integer shopId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}